package me.ZFC.Text;

import java.util.Random;

public class Test16 {
    public static void main(String[] args) {
        char[] chs = new char[52];
        for (int i = 0; i < 26; i++) {
            chs[i] = (char) ('A' + i);
        }
        for (int i = 26; i < chs.length; i++) {
            chs[i] = (char) ('a' + i - 26);
        }
        String str = "";
        Random r = new Random();
        for (int i = 0; i < 4; i++) {
            int index = r.nextInt(chs.length);
            str += chs[index];
        }
        int number = r.nextInt(10);
        str += number;
        char[] arr = str.toCharArray();
        for (int i = 0; i < arr.length; i++) {
            int a = r.nextInt(arr.length);
            char temp = arr[i];
            arr[i] = arr[a];
            arr[a] = temp;
        }
        String result = new String(arr);
        System.out.println(result);
    }
}
